package com.dreem.builder.improve;

/**
 * @program: DesignParrtern
 * @description: 客户端
 * @author: Peng
 * @create: 2021-01-29  10:50
 **/
public class Client {
    public static void main(String[] args){
        HouseDirector houseDirector = new HouseDirector(new CommonHouse());

        House house = houseDirector.constructHouse();

        HighBuild highBuild = new HighBuild();
        houseDirector.setHouseBuilder(highBuild);
        House house1 = houseDirector.constructHouse();
    }
}
